package com.stox.core.util;

import java.util.HashMap;
import java.util.Map;

public class Global {

	private static final Map<String, Object> map = new HashMap<String, Object>();
	
	public static void put(String key, Object value){
		map.put(key, value);
	}
	
	public static Object get(String key){
		return map.get(key);
	}
	
	@SuppressWarnings("unchecked")
	public static <T> T get(String key, Class<T> clazz){
		return (T)get(key);
	}
	
}
